/**
 *
 */
#include "BitmapUtil.h"

extern "C"
JNIEXPORT jobject
JNICALL
Java_com_example_ndkjnidemo_dashboard_bitmap_JNIBitmap_negative(JNIEnv *env, jobject thiz,
                                                           jobject bitmap) {
    auto *bitmapUtil = new BitmapUtil;
    jobject obj = bitmapUtil->negative(env, bitmap);
    delete bitmapUtil;
    return obj;
}

extern "C"
JNIEXPORT jint
JNICALL
Java_com_example_ndkjnidemo_dashboard_bitmap_JNIBitmap_negativeChangeOrigin(JNIEnv *env, jobject thiz,
                                                                       jobject bitmap) {
    auto *bitmapUtil = new BitmapUtil;
    int ret = bitmapUtil->negativeChangeOrigin(env, bitmap);
    delete bitmapUtil;
    return ret;
}

extern "C"
JNIEXPORT jobject
JNICALL
Java_com_example_ndkjnidemo_dashboard_bitmap_JNIBitmap_cold(JNIEnv *env, jobject thiz,
                                                       jobject bitmap) {
    auto *bitmapUtil = new BitmapUtil;
    jobject obj = bitmapUtil->cold(env, bitmap);
    delete bitmapUtil;
    return obj;
}

extern "C"
JNIEXPORT jobject
JNICALL
Java_com_example_ndkjnidemo_dashboard_bitmap_JNIBitmap_warm(JNIEnv *env, jobject thiz,
                                                       jobject bitmap) {
    auto *bitmapUtil = new BitmapUtil;
    jobject obj = bitmapUtil->warm(env, bitmap);
    delete bitmapUtil;
    return obj;
}

extern "C"
JNIEXPORT jobject
JNICALL
Java_com_example_ndkjnidemo_dashboard_bitmap_JNIBitmap_blackAndWhite(JNIEnv *env, jobject thiz,
                                                                jobject bitmap) {
    auto *bitmapUtil = new BitmapUtil;
    jobject obj = bitmapUtil->blackAndWhite(env, bitmap);
    delete bitmapUtil;
    return obj;
}

extern "C"
JNIEXPORT jobject
JNICALL
Java_com_example_ndkjnidemo_dashboard_bitmap_JNIBitmap_gray(JNIEnv *env, jobject thiz, jobject bitmap) {
    auto *bitmapUtil = new BitmapUtil;
    jobject obj = bitmapUtil->gray(env, bitmap);
    delete bitmapUtil;
    return obj;
}

extern "C"
JNIEXPORT jobject
JNICALL
Java_com_example_ndkjnidemo_dashboard_bitmap_JNIBitmap_leftRight(JNIEnv *env, jobject thiz,
                                                            jobject bitmap) {

    auto bitmapUtil = new BitmapUtil;
    jobject obj = bitmapUtil->leftRight(env, bitmap);
    delete bitmapUtil;
    return obj;
}
